package cn.iocoder.yudao.module.promotion.dal.mysql.prizedraw;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.promotion.controller.admin.prizedraw.vo.PrizeDrawNumberMemberPageReqVO;
import cn.iocoder.yudao.module.promotion.controller.admin.prizedraw.vo.PrizeDrawNumberMemberRespVO;
import cn.iocoder.yudao.module.promotion.dal.dataobject.prizedraw.PrizeDrawNumberMemberDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户抽奖次数 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface PrizeDrawNumberMemberMapper extends BaseMapperX<PrizeDrawNumberMemberDO> {


    PageResult<PrizeDrawNumberMemberRespVO> paging(@Param("request") PrizeDrawNumberMemberPageReqVO dto);



    /**
     * 减少用户抽奖次数
     *
     * @param userId
     */
    void reduceNumber(Long userId);

}